#!/usr/bin/env bash

#
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#

set -e

./scripts/benchmark/run "simple-p2p --delay=15ms --bandwidth=2Mbps --queue=25"
./scripts/benchmark/run "simple-p2p --delay=15ms --bandwidth=5Mbps --queue=25"
./scripts/benchmark/run "simple-p2p --delay=15ms --bandwidth=10Mbps --queue=25"
./scripts/benchmark/run "simple-p2p --delay=15ms --bandwidth=10Mbps --queue=10"
./scripts/benchmark/run "simple-p2p --delay=15ms --bandwidth=10Mbps --queue=50"
./scripts/benchmark/run "simple-p2p --delay=15ms --bandwidth=10Mbps --queue=2048"
./scripts/benchmark/run "drop-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_client=1 --rate_to_server=1"
./scripts/benchmark/run "drop-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_client=2 --rate_to_server=2"
./scripts/benchmark/run "drop-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_client=5 --rate_to_server=5"

cd target/benchmark/results
tree -H "." -T "Benchmark Results" --noreport --charset utf-8 -I "*index.html" > index.html
